<ion-view view-title="订单详情" hide-tabs class="page-bg ">
  <ion-nav-bar class="bar-energized light">
    <ion-nav-back-button>
      返回
    </ion-nav-back-button>
  </ion-nav-bar>
  <ion-content direction="y" overflow-scroll="false" scrollbar-y="false" style="margin-bottom: 44px;">
<!--    <div ng-if="showloading" style="margin-top:60px; text-align: center">
      <ion-spinner icon="ios" style="height: 60px; width: 60px;;"></ion-spinner>
    </div>-->
    <div class="list">
      <label class="item item-input">
        <span class="input-label">雇员名称</span>
        <input type="text" readonly value="{{orderDetailInfo.user_name}}">
      </label>
      <label class="item item-input">
        <span class="input-label">服务类型</span>
        <input type="text" readonly value="{{orderDetailInfo.role_name}}">
      </label>
      <label class="item item-input">
        <span class="input-label">服务价格</span>
        <input type="text" readonly value="{{orderDetailInfo.price_dec}}">
      </label>
      <label class="item item-input">
        <span class="input-label">面试方式</span>
        <input type="text" readonly value="{{orderDetailInfo.interview}}">
      </label>
      <label class="item item-input">
        <span class="input-label">下单时间</span>
        <input type="text" readonly value="{{orderDetailInfo.appointment_time | date:'yyyy-MM-dd hh:mm:ss'}}">
      </label>
      <label class="item item-input">
        <span class="input-label">开始服务时间</span>
        <input type="text" readonly value="{{orderDetailInfo.start_time | date:'yyyy-MM-dd hh:mm:ss'}}">
      </label>
      <label class="item item-input">
        <span class="input-label">服务完成时间</span>
        <input type="text" ng-model="userData.idetifidy">
      </label>
      <label class="item item-input">
        <span class="input-label">服务付款时间</span>
        <input type="text" ng-model="userData.idetifidy">
      </label>
      <label class="item item-input">
        <span class="input-label">订单状态</span>
        <input type="text" readonly value="{{orderDetailInfo.statusStr}}">
      </label>
      <label class="item item-input">
        <span class="input-label">服务地址</span>
        <input type="text" readonly value="{{orderDetailInfo.address}}">
      </label>
      <label class="item item-input">
        <span class="input-label">备注</span>
        <input type="text" readonly ng-model="userData.idetifidy">
      </label>

    </div>

  </ion-content>
  <ion-footer-bar style="height:3.25rem; padding:0;" ng-if="role==1">
    <div class="order-button2" ng-if="orderDetailInfo.status<3" ng-click="changeOrderState(orderDetailInfo.id,1,8)"><button class="button button-large button-full button-positive user-button2" ng-click="sureReach(orderDetailInfo.id)">取消订单</button></div>
  </ion-footer-bar>
  <ion-footer-bar style="height:3.25rem; padding:0;" ng-if="role==2">
    <div class="order-button2"  ng-click="changeOrderState(orderDetailInfo.id,1,8)"><button class="button button-large button-full button-positive user-button2" ng-click="sureReach(orderDetailInfo.id)">同意</button></div>
    <div class="order-button2"  ng-click="changeOrderState(orderDetailInfo.id,1,8)"><button class="button button-large button-full  user-button3" ng-click="sureReach(orderDetailInfo.id)">不同意</button></div>
  </ion-footer-bar>
</ion-view>
